@import 'variable';

/*颜色*/
.mc {
  color: $mc;
}

.ccc {
  color: $ccc;
}

.success {
  color: $green;
}

.error {
  color: $red;
}

.Box {
  height: calc(100vh - 110px);
  width: 100%;
}

.danger {
  color: #f56c6c !important;

  &:hover {
    color: #f78989 !important;
  }
}

/*element 标签 颜色类增加*/
.el-tag.el-tag--pink {
  background-color: #faebf3;
  border-color: #f2d8e5;
  color: #f56cb3;
}

.el-tag.el-tag--purple {
  background-color: rgba($color: $purple, $alpha: 0.1);
  border-color: rgba($color: $purple, $alpha: 0.2);
  color: rgba($color: $purple, $alpha: 1);
}

.el-tag.el-tag--yellow {
  background-color: rgba($color: $yellow, $alpha: 0.1);
  border-color: rgba($color: $yellow, $alpha: 0.2);
  color: rgba($color: $yellow, $alpha: 1);
}

.el-tag.el-tag--young {
  background-color: rgba($color: $young, $alpha: 0.1);
  border-color: rgba($color: $young, $alpha: 0.2);
  color: rgba($color: $young, $alpha: 1);
}

.el-tag.el-tag--orange {
  background-color: rgba($color: $orange, $alpha: 0.1);
  border-color: rgba($color: $orange, $alpha: 0.2);
  color: rgba($color: $orange, $alpha: 1);
}

/* element 时间选择上下线条 */
.el-time-panel__content::after,
.el-time-panel__content::before {
  margin-top: -6.5px !important;
}

/* el-notification */
.el-notification {
  z-index: 999999 !important;
}

/* el-tooltip__popper */
.el-tooltip__popper {
  text-align: justify;
  max-width: 55%;
}

/* element 提示长度自适应 */
.el-message {
  min-width: inherit !important;
}

/*element 弹窗 滚动条优化*/
.el-popup-parent--hidden {
  padding-right: 0 !important;

  .el-dialog__wrapper {
    overflow-x: hidden;
  }

  .el-drawer {
    .el-drawer__header {
      height: 60px;
      display: block;
      line-height: 60px;
      text-align: right;
      padding: 0 !important;
      margin-bottom: 0 !important;
      border-bottom: 1px solid $f9fafb;

      span {
        width: 80%;
        float: left;
        display: block;
        padding: 0 12px;
        font-size: 16px;
        overflow: hidden;
        text-align: left;
        white-space: nowrap;
        text-overflow: ellipsis;
      }

      .el-drawer__close-btn {
        width: 60px;
        height: 60px;
        line-height: 60px;
        text-align: center;
      }
    }

    .el-drawer__contenter {
      height: calc(100vh - 60px);
      position: relative;

      &.el-loading-parent--relative {
        overflow-y: hidden !important;
      }

      .el-form {
        @include scroll-beautify(5px, $c1c1c1, transparent, scroll);
        height: calc(100vh - 113px);
        padding: 18px 18px 0 18px;

        &.form-btnsNo {
          height: calc(100vh - 60px);
        }

        .el-form-item {
          margin-bottom: 18px;

          .el-form-item__label {
            line-height: 28px;
            color: $c1c1c1;
            font-size: 12px;
          }

          .el-form-item__content {
            word-break: break-word;
            text-align: justify;
            line-height: 28px;

            .el-select {
              width: 100%;
            }

            .el-slider__runway {
              margin: 11px 0;
            }
          }
        }
      }

      .drawer-btns {
        border-top: 1px solid $f9fafb;
        background-color: $white;
        text-align: right;
        padding: 12px 18px;
      }
    }
  }
}

/*element form*/
.el-form {
  .el-form-item {
    .el-form-item__label {
      color: $ccc;
      text-align: right;
      vertical-align: middle;
      float: left;
      font-size: 14px;
      padding: 0 12px 0 0;
      box-sizing: border-box;
    }

    .el-form-item__content {
      word-break: break-word;
      text-align: justify;

      .el-input-number,
      .el-date-editor,
      .el-select {
        width: 100%;
      }

      .el-input-number {
        .el-input__inner {
          text-align: left;
        }
      }
    }

    .el-input-group__prepend,
    .el-input-group__append {
      padding: 0 8px;
    }
  }

  /*提示*/
  .form-tips {
    font-size: 12px;
    color: $red;
  }

  /*富文本*/
  .wang-editor {
    .w-e-toolbar {
      line-height: 20px;
      text-align: left;
      font-size: 12px;
      padding: 0;

      .w-e-menu {
        padding: 5px 9px;

        .w-e-droplist {
          p {
            text-align: center;
          }
        }
      }
    }

    .w-e-text-container {
      .w-e-text {
        @include scroll-beautify(5px, $c1c1c1, transparent, scroll);
      }
    }
  }

  /*省市区*/
  .el-cascader {
    display: block;
  }
}

/* el-select-dropdown */
.el-select-dropdown {
  .iconfont {
    color: $white;
    background-color: $ccc;
    margin: 7.6px 8px 6px 0;
    text-align: center;
    border-radius: 2px;
    line-height: 20px;
    overflow: hidden;
    display: block;
    height: 20px;
    float: left;
    width: 20px;

    &.icon-pinganBank,
    &.icon-pufaBank {
      font-size: 20px;
    }
  }
}

/* no-data */
.no-data {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
